{extend name="property/public/insidePageBase" /}
{block name="title"}编辑电表集中器{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label required">设备二维码</label>
                <div class="layui-input-block">
                    <input type="text" disabled value="{$info['energy_code'] ?? ''}" autocomplete="off"  class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label indispensable">设 备 类 型</label>
                <div class="layui-input-block">
                    <select name="energy_type" lay-filter="energy_type">
                        <option value="">--请选择--</option>
                        {foreach $energyTypeData as $k=>$v}
                        <option value="{$k}" {:isset($info['energy_type']) ? $info['energy_type'] == $k ? 'selected' : '' : ''}>{$v}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">设 备 编 号</label>
                <div class="layui-input-block">
                    <input type="text" name="energy_no" value="{$info['energy_no']??''}" min="8" max="14" lay-verify="require" autocomplete="off" placeholder="请输入设备编号" class="layui-input" onkeyup="this.value=this.value.replace(/[^\w]/g,'');">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入备注说明" class="layui-textarea" name="remark">{$info['remark']??''}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,layer = layui.layer,  $ = layui.$;
    });
</script>
{/block}